package oop8;

import oop6.pet2.Dog;
import oop6.pet2.Pet;
import oop7.PetDoctor;
import oop7.Tiger;

/**
 * @author oldliu
 * @since 1.0
 */
public class PetTest9 {
    public static void main(String[] args) {
        PetDoctor pd=new PetDoctor("李医生");
        Tiger t=new Tiger("翠花",3,"公",100,100);
         Object o=new Tiger("翠花",3,"公",100,100);
        Tiger tiger=(Tiger) o;//强制 向下转型
        tiger.print();
        pd.cure(tiger);
//        System.out.println(o);//
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");

        Pet d=new Dog("大黄",3,"公",100,100,"田园犬");
        d.print();
        //Dog d2= (Dog) d;
        //d2.catchMouse("Jerry");
        ((Dog)d).catchMouse("小灰灰");
        pd.cure(d);
    }
}
